package com.ruoyi.carbon.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 采购申请明细对象 scm_purchase_apply_detail
 * 
 * @author ruoyi
 * @date 2024-11-22
 */
public class ScmPurchaseApplyDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 采购申请id */
    @Excel(name = "采购申请id")
    private Long applyId;

    /** 物料id */
    @Excel(name = "物料id")
    private Long materialId;


    /** 单价 */
    @Excel(name = "单价")
    private BigDecimal price;

    /** 采购数量 */
    @Excel(name = "采购数量")
    private Long quantity;

    /** 需求数量 */
    @Excel(name = "需求数量")
    private Long requireQuantity;

    /** 需求日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "需求日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date requireDate;

    /** 备注 */
    @Excel(name = "备注")
    private String detailRemark;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setApplyId(Long applyId) 
    {
        this.applyId = applyId;
    }

    public Long getApplyId() 
    {
        return applyId;
    }
    public void setMaterialId(Long materialId) 
    {
        this.materialId = materialId;
    }

    public Long getMaterialId() 
    {
        return materialId;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setQuantity(Long quantity) 
    {
        this.quantity = quantity;
    }

    public Long getQuantity() 
    {
        return quantity;
    }
    public void setRequireQuantity(Long requireQuantity) 
    {
        this.requireQuantity = requireQuantity;
    }

    public Long getRequireQuantity() 
    {
        return requireQuantity;
    }
    public void setRequireDate(Date requireDate) 
    {
        this.requireDate = requireDate;
    }

    public Date getRequireDate() 
    {
        return requireDate;
    }
    public void setDetailRemark(String detailRemark) 
    {
        this.detailRemark = detailRemark;
    }

    public String getDetailRemark() 
    {
        return detailRemark;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("applyId", getApplyId())
            .append("materialId", getMaterialId())
            .append("price", getPrice())
            .append("quantity", getQuantity())
            .append("requireQuantity", getRequireQuantity())
            .append("requireDate", getRequireDate())
            .append("detailRemark", getDetailRemark())
            .toString();
    }
}
